package com.ruoyi.mes.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 物料信息对象 mtr_info
 *
 * @author LongAndHao
 * @date 2023-04-04
 */
public class MtrInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 库房ID */
    private Long houId;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String mtrCode;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String mtrName;

    /** 成本 */
    @Excel(name = "成本")
    private BigDecimal cost;


    /** 组成产品类型  0 - 半成品 1 - 成品 */
    @Excel(name = "组成产品类型  0 - 半成品 1 - 成品")
    private Long mtrProType;

    /** 物料数量 */
    @TableField(exist = false)
    private Long mtrQuantity;

    /** 预算成本 */
    @TableField(exist = false)
    private BigDecimal BudgetedCost;

    public BigDecimal getBudgetedCost() {
        return BudgetedCost;
    }

    public void setBudgetedCost(BigDecimal budgetedCost) {
        BudgetedCost = budgetedCost;
    }

    public BigDecimal getCost() {
        return cost;
    }

    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }

    public Long getMtrQuantity() {
        return mtrQuantity;
    }

    public void setMtrQuantity(Long mtrQuantity) {
        this.mtrQuantity = mtrQuantity;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setHouId(Long houId)
    {
        this.houId = houId;
    }

    public Long getHouId()
    {
        return houId;
    }
    public void setMtrCode(String mtrCode)
    {
        this.mtrCode = mtrCode;
    }

    public String getMtrCode()
    {
        return mtrCode;
    }
    public void setMtrName(String mtrName)
    {
        this.mtrName = mtrName;
    }

    public String getMtrName()
    {
        return mtrName;
    }
    public void setMtrProType(Long mtrProType)
    {
        this.mtrProType = mtrProType;
    }

    public Long getMtrProType()
    {
        return mtrProType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("houId", getHouId())
            .append("mtrCode", getMtrCode())
            .append("mtrName", getMtrName())
            .append("mtrProType", getMtrProType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
